package com.boot2.core.utils;

/**
 * Author marswon
 * Created on 2016/6/8.
 * ErrorMessage
 */
public class CompareUtils {
    public static boolean equals(Long longValue,int intValue){
        return longValue.intValue() == intValue;
    }

    public static boolean equals(long longValue,int intValue){
        return longValue == intValue;
    }

    public static boolean equals(long longValue,Integer intValue){
        return longValue == intValue.longValue();
    }

    public static boolean equals(Long longValue,Integer intValue){
        return longValue == intValue.longValue();
    }

    public static boolean equals(Long longValue,String strValue){
        return strValue != null && strValue.equals(longValue.toString());
    }

    public static boolean equals(long longValue,String strValue){
        return strValue != null && strValue.equals(String.valueOf(longValue));
    }
}
